package UILayer;
import java.util.Scanner;


/**
 * Write a description of class Parser here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Parser
{
    
    public Parser()
    {
        
    }
    
    /*
     * Scans for input of type int and returns it
     */
    public int scanChoiceInput()
    {
        Scanner keyboard = new Scanner(System.in);
        if(keyboard.hasNextInt()) {
            int choice = keyboard.nextInt();
            return choice;
        }
        else {
            return -1;
        }
    }

    public String scanInputString()
    {
        Scanner keyboard = new Scanner(System.in);
        String input = keyboard.nextLine();
        return input;
    }
}
